package com.health.api.client;


import com.health.api.fallback.WareHouseClientFallback;
import com.health.api.model.transporter.AddWareHouseItemRequest;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.service.annotation.PostExchange;

/**
 * @author zhexueqi
 * @ClassName WareHouseClient
 * @since 2024/9/1    21:30
 */
@FeignClient(name = "warehouse-service",fallback = WareHouseClientFallback.class)
public interface WareHouseClient {


    @PostMapping("/warehouse/addWareHouseItem")
    boolean addWareHouseItem(@RequestBody @Valid AddWareHouseItemRequest addWareHouseItemRequest);
}
